package com.cupk.entities;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("publications")
public class Publication {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("title")
    private String title;

    @TableField("authors")
    private String authors;

    @TableField("journal_conference_name")
    private String journalConferenceName; // 期刊/会议名称

    @TableField("publication_year")
    private Integer publicationYear;

    @TableField("doi_link")
    private String doiLink;

    @TableField("abstract_text")
    private String abstractText;

    @TableField("project_id")
    private Long projectId;

    @TableField("uploader_id")
    private Long uploaderId;

    @TableField("document_url")
    private String documentUrl; // 文档文件URL

    @TableField("document_name")
    private String documentName; // 文档原始文件名

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}